The positive integers are to be partioned into several subsets A1,A2,...,An such that, for i=1,2,...,n, if x is in Ai then 2x is not in Ai. What is the minimum value of n?